package cn.wolfcode.wolf2w.query;

import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class TravelQuery extends QueryObject {
    //通过状态高级查询
    private int state=0;
    private String destId;
    private int dayType=-1;
    private int  perExpendType;
    private int  orderType;

    //直接在这里拿天数
    public TravelContdition getDay(){
        return TravelContdition.DAY_MAP.get(dayType);
    }
    //直接在这里拿人均消费
    public TravelContdition getPerexpend(){
        return TravelContdition.PEREXPEND_MAP.get(perExpendType);
    }

}
